/*
 * Windy - Level Editor for Isometric Tile-based Games
 * Copyright (C) 2009 Ricardo J. Ricken (Darkl0rd)
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef WINDY_TILESET_HPP
#define WINDY_TILESET_HPP

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include <wx/imaglist.h>
#include <wx/sharedptr.h> 

struct WindyTileset
{
   WindyTileset (wxString &fname, wxString &tsname, wxString &tsdesc, wxSharedPtr <wxImageList> &t):
   filename(fname), name(tsname), desc(tsdesc), tiles(t) {
      tiles->GetSize(0, size.x, size.y);
   }

   /*WindyTileset (const WindyTileset &copy):
      filename(copy.filename), name(copy.name), desc(copy.desc), size(copy.size), tiles(copy.tiles) { }
   */

   int numTiles () const { return tiles->GetImageCount(); }
   wxBitmap getTile (int index) { return tiles->GetBitmap(index); }

   wxString filename;
   wxString name;
   wxString desc;
   wxSize size;

   wxSharedPtr <wxImageList> tiles;
};

#endif //~WINDY_TILESET_HPP